<template>
    <div>
    
    <div class="swipebox">

        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="item in img" :key="item.id"><img :src="item.thumb" alt=""></mt-swipe-item>
           
        </mt-swipe>
    </div>
    
    <div class="mui-content">
        <ul class="mui-table-view mui-grid-view mui-grid-9">
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                    <img src="../../images/menu1.png" alt="">
                    <div class="mui-media-body">新闻资讯</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                        <img src="../../images/menu2.png" alt="">
                        
                    </span>
                    <div class="mui-media-body">图片分享</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                        <img src="../../images/menu3.png" alt="">
                    
                    <div class="mui-media-body">商品购买</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                        <img src="../../images/menu4.png" alt="">
                    
                    <div class="mui-media-body">留言反馈</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                        <img src="../../images/menu5.png" alt="">
                    
                    <div class="mui-media-body">视频专区</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                        <img src="../../images/menu6.png" alt="">
                    
                    <div class="mui-media-body">联系我们</div>
                </a>
            </li>
           
        </ul>
    </div>
    </div>
</template>

<script>
import { Swipe, SwipeItem } from 'mint-ui';

export default{
    data(){
        return {
            img:[],
            baseurl : "http:\/\/www.ruida.com\/",
        };

    },
    components:{
        "mt-swipe":Swipe,
        "mt-swipe-item":SwipeItem,
    },
    created() {
        this.getlunbotu();
    },
    mounted(){
      

    },
    methods:{
        //29 30 31
        getlunbotu(){
            var _this = this;
            this.$http.get("http://www.ruida.com/index/index/image").then(re =>{
                 console.log(re);
                _this.img = re.body.data;
                _this.img.forEach((item ,index)=>{
                    item.thumb = _this.baseurl + item.thumb;
                });
                console.log(_this.img);

                // _this.img[2].thumb = _this.baseurl +　_this.img[2].thumb;
            });
        }
    }
    
}
</script>

<style lang="scss" scoped>
    div{
        margin: 0px;
        padding: 0px;
    }
    .swipebox{
        width: 100%;
        height: 260px;
    }
    img{
        height: auto;
     max-width: 100%;

    }
    .mui-content{
        position: relative;
        top: -50px;
    }
    .mui-grid-view.mui-grid-9{
        background-color: #fff;
        li{
            border:0px solid black;
            font-size : 13px;
            img{
                width: 60px;
                height: 60px;
            }
        }
    }
</style>